<template>
    <div class="function-list">
        <p>点击按钮实现图层添加、开启绘制范围并计算</p>
        <el-button type="primary" @click="handleClick(analyzeType.YILIAO)">医疗设施</el-button>
        <el-button type="primary" @click="handleClick(analyzeType.YANGLAO)">养老设施</el-button>
        <el-button type="primary" @click="handleClick(analyzeType.LVDI)">绿地设施</el-button>

    </div>
</template>

<script>
import config from '../api/config'

export default {
    data() {
        return {
            analyzeType: config.analyzeType
        }
    },
    methods: {
        handleClick(type) {
            console.log('setFunType',type);
            this.$store.commit("setFunType", type)
        }
    }
}
</script>

<style lang="less">
    .function-list{
        text-align: center;
        button {
            display: block !important;
            margin: 10px auto !important;
        }
    }
</style>
